﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200049D RID: 1181
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EntityBuffInfo : IMessage<EntityBuffInfo>, IMessage, IEquatable<EntityBuffInfo>, IDeepCloneable<EntityBuffInfo>, IBufferMessage
	{
		// Token: 0x17000F32 RID: 3890
		// (get) Token: 0x06003531 RID: 13617 RVA: 0x00092115 File Offset: 0x00090315
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EntityBuffInfo> Parser
		{
			get
			{
				return EntityBuffInfo._parser;
			}
		}

		// Token: 0x17000F33 RID: 3891
		// (get) Token: 0x06003532 RID: 13618 RVA: 0x0009211C File Offset: 0x0009031C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EntityBuffInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F34 RID: 3892
		// (get) Token: 0x06003533 RID: 13619 RVA: 0x0009212E File Offset: 0x0009032E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EntityBuffInfo.Descriptor;
			}
		}

		// Token: 0x06003534 RID: 13620 RVA: 0x00092135 File Offset: 0x00090335
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBuffInfo()
		{
		}

		// Token: 0x06003535 RID: 13621 RVA: 0x00092148 File Offset: 0x00090348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBuffInfo(EntityBuffInfo other) : this()
		{
			this.buffList_ = other.buffList_.Clone();
			this.entityId_ = other.entityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003536 RID: 13622 RVA: 0x0009217E File Offset: 0x0009037E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBuffInfo Clone()
		{
			return new EntityBuffInfo(this);
		}

		// Token: 0x17000F35 RID: 3893
		// (get) Token: 0x06003537 RID: 13623 RVA: 0x00092186 File Offset: 0x00090386
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BuffInfo> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x17000F36 RID: 3894
		// (get) Token: 0x06003538 RID: 13624 RVA: 0x0009218E File Offset: 0x0009038E
		// (set) Token: 0x06003539 RID: 13625 RVA: 0x00092196 File Offset: 0x00090396
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x0600353A RID: 13626 RVA: 0x0009219F File Offset: 0x0009039F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EntityBuffInfo);
		}

		// Token: 0x0600353B RID: 13627 RVA: 0x000921B0 File Offset: 0x000903B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EntityBuffInfo other)
		{
			return other != null && (other == this || (this.buffList_.Equals(other.buffList_) && this.EntityId == other.EntityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600353C RID: 13628 RVA: 0x00092200 File Offset: 0x00090400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.buffList_.GetHashCode();
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600353D RID: 13629 RVA: 0x0009224D File Offset: 0x0009044D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600353E RID: 13630 RVA: 0x00092255 File Offset: 0x00090455
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600353F RID: 13631 RVA: 0x00092260 File Offset: 0x00090460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.buffList_.WriteTo(ref output, EntityBuffInfo._repeated_buffList_codec);
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003540 RID: 13632 RVA: 0x000922B0 File Offset: 0x000904B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.buffList_.CalculateSize(EntityBuffInfo._repeated_buffList_codec);
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003541 RID: 13633 RVA: 0x00092304 File Offset: 0x00090504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EntityBuffInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.buffList_.Add(other.buffList_);
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003542 RID: 13634 RVA: 0x00092351 File Offset: 0x00090551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003543 RID: 13635 RVA: 0x0009235C File Offset: 0x0009055C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EntityId = input.ReadUInt32();
					}
				}
				else
				{
					this.buffList_.AddEntriesFrom(ref input, EntityBuffInfo._repeated_buffList_codec);
				}
			}
		}

		// Token: 0x040014D4 RID: 5332
		private static readonly MessageParser<EntityBuffInfo> _parser = new MessageParser<EntityBuffInfo>(() => new EntityBuffInfo());

		// Token: 0x040014D5 RID: 5333
		private UnknownFieldSet _unknownFields;

		// Token: 0x040014D6 RID: 5334
		public const int BuffListFieldNumber = 5;

		// Token: 0x040014D7 RID: 5335
		private static readonly FieldCodec<BuffInfo> _repeated_buffList_codec = FieldCodec.ForMessage<BuffInfo>(42U, BuffInfo.Parser);

		// Token: 0x040014D8 RID: 5336
		private readonly RepeatedField<BuffInfo> buffList_ = new RepeatedField<BuffInfo>();

		// Token: 0x040014D9 RID: 5337
		public const int EntityIdFieldNumber = 9;

		// Token: 0x040014DA RID: 5338
		private uint entityId_;
	}
}
